<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Picture-Manager: PictureManager Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Picture-Manager
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_picture_manager.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_picture_manager-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">PictureManager Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Allows you to manage a list of pictures.  
 <a href="class_picture_manager.html#details">More...</a></p>

<p><code>#include &lt;PictureManager.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for PictureManager:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_picture_manager.png" usemap="#PictureManager_map" alt=""/>
  <map id="PictureManager_map" name="PictureManager_map">
<area href="class_singleton_base.html" alt="SingletonBase&lt; PictureManager &gt;" shape="rect" coords="0,56,207,80"/>
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,207,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1e8f46633ae8c073571e629ece8f528e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_picture_manager.html#a1e8f46633ae8c073571e629ece8f528e">~PictureManager</a> ()</td></tr>
<tr class="memdesc:a1e8f46633ae8c073571e629ece8f528e"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_picture_manager.html" title="Allows you to manage a list of pictures.">PictureManager</a>.  <a href="#a1e8f46633ae8c073571e629ece8f528e"></a><br/></td></tr>
<tr class="separator:a1e8f46633ae8c073571e629ece8f528e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f06ed89752761ea6d0bde6c516de121"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_picture_manager.html#a0f06ed89752761ea6d0bde6c516de121">addPicture</a> (<a class="el" href="class_picture.html">Picture</a> *pic)</td></tr>
<tr class="memdesc:a0f06ed89752761ea6d0bde6c516de121"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the picture pic to the list.  <a href="#a0f06ed89752761ea6d0bde6c516de121"></a><br/></td></tr>
<tr class="separator:a0f06ed89752761ea6d0bde6c516de121"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a370cc82ed2311aa5a489414ee48411c8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_picture.html">Picture</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_picture_manager.html#a370cc82ed2311aa5a489414ee48411c8">getPicture</a> (std::string const &amp;name) const </td></tr>
<tr class="memdesc:a370cc82ed2311aa5a489414ee48411c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to a picture by its name.  <a href="#a370cc82ed2311aa5a489414ee48411c8"></a><br/></td></tr>
<tr class="separator:a370cc82ed2311aa5a489414ee48411c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad40b1d7ef6c00a47f44e7255f06736b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_picture_manager.html#ad40b1d7ef6c00a47f44e7255f06736b9">SavePictures</a> () const </td></tr>
<tr class="memdesc:ad40b1d7ef6c00a47f44e7255f06736b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves alle pictures in the list.  <a href="#ad40b1d7ef6c00a47f44e7255f06736b9"></a><br/></td></tr>
<tr class="separator:ad40b1d7ef6c00a47f44e7255f06736b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a6ca75735916145ad9a3a4bbc0e3ed9e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ca75735916145ad9a3a4bbc0e3ed9e7"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SingletonBase&lt; PictureManager &gt;</b></td></tr>
<tr class="separator:a6ca75735916145ad9a3a4bbc0e3ed9e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_singleton_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_singleton_base')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_singleton_base.html">SingletonBase&lt; PictureManager &gt;</a></td></tr>
<tr class="memitem:a6cef22134c9f77c521c2f21c1c41c98b inherit pub_static_methods_class_singleton_base"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_picture_manager.html">PictureManager</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton_base.html#a6cef22134c9f77c521c2f21c1c41c98b">getInstance</a> ()</td></tr>
<tr class="memdesc:a6cef22134c9f77c521c2f21c1c41c98b inherit pub_static_methods_class_singleton_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an Instance of the class TType.  <a href="#a6cef22134c9f77c521c2f21c1c41c98b"></a><br/></td></tr>
<tr class="separator:a6cef22134c9f77c521c2f21c1c41c98b inherit pub_static_methods_class_singleton_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_singleton_base"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_singleton_base')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_singleton_base.html">SingletonBase&lt; PictureManager &gt;</a></td></tr>
<tr class="memitem:a4a676de65f9f284c8affafd8d6c9502b inherit pro_methods_class_singleton_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_singleton_base.html#a4a676de65f9f284c8affafd8d6c9502b">SingletonBase</a> ()</td></tr>
<tr class="memdesc:a4a676de65f9f284c8affafd8d6c9502b inherit pro_methods_class_singleton_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor of Singletonbase.  <a href="#a4a676de65f9f284c8affafd8d6c9502b"></a><br/></td></tr>
<tr class="separator:a4a676de65f9f284c8affafd8d6c9502b inherit pro_methods_class_singleton_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Allows you to manage a list of pictures. </p>
<p><a class="el" href="class_picture_manager.html" title="Allows you to manage a list of pictures.">PictureManager</a> is a class which allow you to manage a list of pictures. It offers you functions to add pictures to the list and save all images in the list to a file. The Pictures added to the Manager are automatically removed/freed when the manager is destroyed. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1e8f46633ae8c073571e629ece8f528e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PictureManager::~PictureManager </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DTor of the <a class="el" href="class_picture_manager.html" title="Allows you to manage a list of pictures.">PictureManager</a>. </p>
<p>Frees memory of all pictures in the list. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a0f06ed89752761ea6d0bde6c516de121"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PictureManager::addPicture </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_picture.html">Picture</a> *&#160;</td>
          <td class="paramname"><em>pic</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds the picture pic to the list. </p>
<p>Adds the picture pic to the end of the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pic</td><td>The picture you want to add to the manager. A copy of pic is stored. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a370cc82ed2311aa5a489414ee48411c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_picture.html">Picture</a> * PictureManager::getPicture </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a pointer to a picture by its name. </p>
<p>The function getPicture returns a Pointer to the picture which filename matches name. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The name of the picture you want to retrieve </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A Pointer to the picutre with the filename name or 0 if no picture with the specified name is in the list. </dd></dl>

</div>
</div>
<a class="anchor" id="ad40b1d7ef6c00a47f44e7255f06736b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PictureManager::SavePictures </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Saves alle pictures in the list. </p>
<p><a class="el" href="class_picture_manager.html#ad40b1d7ef6c00a47f44e7255f06736b9" title="Saves alle pictures in the list.">SavePictures()</a> saves all Pictures in the list to the file they are associated with. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_picture_manager.html">PictureManager</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
